package com.libre.auth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.libre.common.base.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author 庞留杰
 * @version V1.0
 * @description 用户
 * @date 2020/7/22 15:20
 **/
@Data
@TableName(value = "sys_user")//指定表名
public class User extends BaseEntity implements Serializable {

    private String code;

    private String username;

    private String realName;

    private String password;

    private String salt;

    private String avatar;

    private String email;

    private String phone;

    private Integer status;//0:禁用,1启用

    private String note;

    private Integer sex;//0:女,1男

    @TableField(exist = false)
    List<Role> roles;

}
